-- GENERATED SPELL FOR [Torn Fin Tidehunter] --


function spell0_2377(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(865,pUnit)
pUnit:RegisterEvent('Sorts_2377', 8000, 1)
end

function Sorts_2377(pUnit, Event)
local choix_sorts_2377 = math.random(0, 0)
if choix_sorts_2377 == 0 then
pUnit:RegisterEvent('spell0_2377', 1, 1)
end
end

function mob2377_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2377', math.random(1500, 3000), 1)
end

function mob2377_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2377_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2377_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2377, 1, 'mob2377_Action')
RegisterUnitEvent(2377, 2, 'mob2377_Leave')
RegisterUnitEvent(2377, 3, 'mob2377_Kill')
RegisterUnitEvent(2377, 4, 'mob2377_Die')
